package mytest;

/**
 * Created by thinkpad on 2015/5/23.
 */
public class Myexception {
    static  int b;
    public static void main(String[] args)
    {
         int c = 0;
        try
        {
            System.out.println("b:" + b);
           test();

        }
        catch (Exception e)
        {
            e.printStackTrace();
        }

    }

    private static void test() throws Exception{
        try
        {
            throw new Exception("TEST");
        }
        catch (Exception e)
        {
            String ring = "123";
            ring.compareTo("1");
            e.printStackTrace();
            throw new Exception("TEST1");

        }
    }

}
